home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / var / lib / python-support / python2.6 / dbus / mainloop / glib.pyc (.txt) < prev   
Encoding:
Python Compiled Bytecode  |  2009-04-20  |  811 b   |  21 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. '''GLib main loop integration using libdbus-glib.'''
  5. __all__ = ('DBusGMainLoop', 'threads_init')
  6. from _dbus_glib_bindings import DBusGMainLoop, gthreads_init
  7. _dbus_gthreads_initialized = False
  8.  
  9. def threads_init():
  10.     '''Initialize threads in dbus-glib, if this has not already been done.
  11.  
  12.     This must be called before creating a second thread in a program that
  13.     uses this module.
  14.     '''
  15.     global _dbus_gthreads_initialized
  16.     if not _dbus_gthreads_initialized:
  17.         gthreads_init()
  18.         _dbus_gthreads_initialized = True
  19.     
  20.  
  21.